-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from fireblocks/fireblocks-api-spec/generated/…
…6749 Generated SDK #6749
- Loading branch information
Showing
38 changed files
with
1,227 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Auto Reply On New Issues | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
auto-reply: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Choose random reply message | ||
id: choose_message | ||
run: | | ||
reply_messages=( | ||
"Thank you for raising this issue! We will look into it shortly." | ||
"We appreciate your feedback. Our team will investigate this issue shortly." | ||
"Your issue has been noted. We'll get back to you soon." | ||
"Thanks for raising this issue. We'll review it and provide updates soon." | ||
"Thank you for letting us know about this issue. We'll investigate and get back to you soon." | ||
"Acknowledged. We'll review the issue and respond soon." | ||
"Thanks for bringing this to our attention. We'll review it and provide updates soon." | ||
"We've received your issue. Thanks for your patience." | ||
"Noted. Expect updates on your issue shortly." | ||
"Your issue is important to us. We will look into it shortly." | ||
) | ||
random_index=$((RANDOM % ${#reply_messages[@]})) | ||
echo "::set-output name=message::${reply_messages[$random_index]}" | ||
- name: Reply to issue | ||
run: | | ||
gh issue comment ${{ github.event.issue.number }} --body "${{ steps.choose_message.outputs.message }}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Auto Reply On New Pull Requests | ||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
auto-reply: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Choose random reply message | ||
id: choose_message | ||
run: | | ||
reply_messages=( | ||
"Thank you for raising this! We will review it shortly. (Note that this SDK code is auto generated)" | ||
"We appreciate your contribution. Our team will investigate this request shortly. (Note that this SDK code is auto generated)" | ||
"Your request has been noted. We'll get back to you soon. (Note that this SDK code is auto generated)" | ||
"Thanks for submitting this request. We'll review it and provide updates soon. (Note that this SDK code is auto generated)" | ||
"Thank you for letting us know about this request. We'll investigate and get back to you soon. (Note that this SDK code is auto generated)" | ||
"Acknowledged. We'll review and respond soon. (Note that this SDK code is auto generated)" | ||
"Thanks for bringing this request to our attention. We'll review and provide updates soon. (Note that this SDK code is auto generated)" | ||
"We've received your request. Thanks for your patience. (Note that this SDK code is auto generated)" | ||
"Noted. Expect updates shortly. (Note that this SDK code is auto generated)" | ||
"Your request is important to us. We will look into it shortly. (Note that this SDK code is auto generated)" | ||
) | ||
random_index=$((RANDOM % ${#reply_messages[@]})) | ||
echo "::set-output name=message::${reply_messages[$random_index]}" | ||
- name: Reply to pull request | ||
if: (!contains(fromJSON('["github-actions"]'), github.event.pull_request.user.login)) | ||
run: | | ||
gh pr comment ${{ github.event.number }} --body "${{ steps.choose_message.outputs.message }}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# AssetPriceForbiddenErrorResponse | ||
|
||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**message** | **str** | Forbidden error message | | ||
**code** | **str** | Error code | | ||
|
||
## Example | ||
|
||
```python | ||
from fireblocks.models.asset_price_forbidden_error_response import AssetPriceForbiddenErrorResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of AssetPriceForbiddenErrorResponse from a JSON string | ||
asset_price_forbidden_error_response_instance = AssetPriceForbiddenErrorResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print(AssetPriceForbiddenErrorResponse.to_json()) | ||
|
||
# convert the object into a dict | ||
asset_price_forbidden_error_response_dict = asset_price_forbidden_error_response_instance.to_dict() | ||
# create an instance of AssetPriceForbiddenErrorResponse from a dict | ||
asset_price_forbidden_error_response_from_dict = AssetPriceForbiddenErrorResponse.from_dict(asset_price_forbidden_error_response_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# AssetPriceNotFoundErrorResponse | ||
|
||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**message** | **str** | Not found error message | | ||
**code** | **str** | Error code | | ||
|
||
## Example | ||
|
||
```python | ||
from fireblocks.models.asset_price_not_found_error_response import AssetPriceNotFoundErrorResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of AssetPriceNotFoundErrorResponse from a JSON string | ||
asset_price_not_found_error_response_instance = AssetPriceNotFoundErrorResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print(AssetPriceNotFoundErrorResponse.to_json()) | ||
|
||
# convert the object into a dict | ||
asset_price_not_found_error_response_dict = asset_price_not_found_error_response_instance.to_dict() | ||
# create an instance of AssetPriceNotFoundErrorResponse from a dict | ||
asset_price_not_found_error_response_from_dict = AssetPriceNotFoundErrorResponse.from_dict(asset_price_not_found_error_response_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# AssetPriceResponse | ||
|
||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**legacy_id** | **str** | The ID of the asset | | ||
**last_update_at** | **float** | Time of last price update | | ||
**currency** | **str** | Currency (according to ISO 4217 currency codes) | | ||
**price** | **float** | Price in currency | | ||
**source** | **str** | Source of the price data | | ||
|
||
## Example | ||
|
||
```python | ||
from fireblocks.models.asset_price_response import AssetPriceResponse | ||
|
||
# TODO update the JSON string below | ||
json = "{}" | ||
# create an instance of AssetPriceResponse from a JSON string | ||
asset_price_response_instance = AssetPriceResponse.from_json(json) | ||
# print the JSON string representation of the object | ||
print(AssetPriceResponse.to_json()) | ||
|
||
# convert the object into a dict | ||
asset_price_response_dict = asset_price_response_instance.to_dict() | ||
# create an instance of AssetPriceResponse from a dict | ||
asset_price_response_from_dict = AssetPriceResponse.from_dict(asset_price_response_dict) | ||
``` | ||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.